package com.muyu.cloud.commodity.domain.req;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author <a href="mailto:602048165@qq.com">60204</a>
 * @version 1.0
 * @description:
 * @date 2025/9/16 10:36
 */
@Data
public class ProductUpdateReq {
    @NotNull(message = "'商品id不能为空")
    public Long id;
    @NotBlank(message = "商品名称不能为空")
    private String productName;
    private String productPic;
    private String description;
    private BigDecimal marketPrice;
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;
    private Long brandId;
    private Integer status;
    @NotEmpty(message = "SKU列表不能为空")
    @Valid
    private List<ProductSkuUpdateReq> skuList;
}
